package cn.pomelo.secondskill.service;

import cn.pomelo.secondskill.exception.SecondsKillException;
import cn.pomelo.secondskill.model.Orders;

import java.util.List;

public interface OrdersService {


    int deleteByPrimaryKey(String id);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);

    List<Orders> findAll();

    Orders findByUseridAndGoodsId(Integer userid, Integer goodsId,Integer state);

    List<Orders> findByUserId(Integer userid);

    List<Orders> findByCondition(Orders record);

    Integer addCar(Integer userid, Integer goodsId) throws SecondsKillException;

}

